package com.syedu.day05.homework;

import java.util.Arrays;

/**
 * description：体彩7位数摇奖
 * 0-9随机数,一共7位,保存在数组中
 *
 * @author Administrator
 * @date 2022/3/10 16:04
 */
public class Exercise1 {
    public static void main(String[] args) {
        int[] result = new int[7];
        for (int i = 0; i < result.length; i++) {
            result[i] = (int) (Math.random() * 10);
        }
        System.out.println(Arrays.toString(result));
    }
}